<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Bluetooth Host Stack Library: RFCOMM</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Bluetooth Host Stack Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group__rfcomm__api__functions.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">RFCOMM</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<p>The RFCOMM protocol provides emulation of serial ports over the L2CAP protocol. </p>
<p>The protocol is based on the ETSI standard GSM 7.1.0. RFCOMM is a simple transport protocol, with additional provisions for emulating the nine circuits of RS-232 (ITU-T V.24) serial ports. The RFCOMM protocol supports up to 60 simultaneous connections between two Bluetooth devices. The number of connections that may be used simultaneously in a Bluetooth device is implementation-specific. </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga802c52c03865b1cb09af25e41363275d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rfcomm__api__functions.html#ga802c52c03865b1cb09af25e41363275d">PORT_MASK_ALL</a></td></tr>
<tr class="memdesc:ga802c52c03865b1cb09af25e41363275d"><td class="mdescLeft">&#160;</td><td class="mdescRight">RFCOMM Port Mask to enable all.  <a href="#ga802c52c03865b1cb09af25e41363275d">More...</a><br /></td></tr>
<tr class="separator:ga802c52c03865b1cb09af25e41363275d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga67a77aad84c51f52a3a3283258fc620d"><td class="memItemLeft" align="right" valign="top"><a id="ga67a77aad84c51f52a3a3283258fc620d"></a>
typedef int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a></td></tr>
<tr class="memdesc:ga67a77aad84c51f52a3a3283258fc620d"><td class="mdescLeft">&#160;</td><td class="mdescRight">RFCOMM result code (see <a class="el" href="group__rfcomm__api__functions.html#ga919c228fbe128a196f66f0569ff3c1ee" title="RFCOMM Result Codes.">wiced_bt_rfcomm_result_e</a>) <br /></td></tr>
<tr class="separator:ga67a77aad84c51f52a3a3283258fc620d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga33ea46c5bfe359825b3973b9ed7bdb01"><td class="memItemLeft" align="right" valign="top"><a id="ga33ea46c5bfe359825b3973b9ed7bdb01"></a>
typedef uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rfcomm__api__functions.html#ga33ea46c5bfe359825b3973b9ed7bdb01">wiced_bt_rfcomm_signal_t</a></td></tr>
<tr class="memdesc:ga33ea46c5bfe359825b3973b9ed7bdb01"><td class="mdescLeft">&#160;</td><td class="mdescRight">RFCOMM Signals (see <a class="el" href="group__rfcomm__api__functions.html#gadc2b731e552fdb229490b5640e29714d" title="RFCOMM Signals.">wiced_bt_rfcomm_signal_e</a>) <br /></td></tr>
<tr class="separator:ga33ea46c5bfe359825b3973b9ed7bdb01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga29e5339346921b8f38a528ff118498d0"><td class="memItemLeft" align="right" valign="top">typedef void()&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rfcomm__api__functions.html#ga29e5339346921b8f38a528ff118498d0">wiced_bt_port_mgmt_cback_t</a>(<a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a> code, uint16_t port_handle)</td></tr>
<tr class="memdesc:ga29e5339346921b8f38a528ff118498d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Port management callback.  <a href="#ga29e5339346921b8f38a528ff118498d0">More...</a><br /></td></tr>
<tr class="separator:ga29e5339346921b8f38a528ff118498d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaca604941c538633cc92ad5a5361dab96"><td class="memItemLeft" align="right" valign="top">typedef void()&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rfcomm__api__functions.html#gaca604941c538633cc92ad5a5361dab96">wiced_bt_port_event_cback_t</a>(<a class="el" href="group__rfcomm__api__functions.html#gaa0e1b18abc58d3ad24eb35eea2fa75c6">wiced_bt_rfcomm_port_event_t</a> event, uint16_t port_handle)</td></tr>
<tr class="memdesc:gaca604941c538633cc92ad5a5361dab96"><td class="mdescLeft">&#160;</td><td class="mdescRight">Port event callback.  <a href="#gaca604941c538633cc92ad5a5361dab96">More...</a><br /></td></tr>
<tr class="separator:gaca604941c538633cc92ad5a5361dab96"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad9593eadcb99b8ff4f6b7e7f8a5825f8"><td class="memItemLeft" align="right" valign="top">typedef void()&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rfcomm__api__functions.html#gad9593eadcb99b8ff4f6b7e7f8a5825f8">wiced_bt_port_tx_cback_t</a>(uint16_t port_handle, void *p_data)</td></tr>
<tr class="memdesc:gad9593eadcb99b8ff4f6b7e7f8a5825f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Port TX Complete callback.  <a href="#gad9593eadcb99b8ff4f6b7e7f8a5825f8">More...</a><br /></td></tr>
<tr class="separator:gad9593eadcb99b8ff4f6b7e7f8a5825f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gaa0e1b18abc58d3ad24eb35eea2fa75c6"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rfcomm__api__functions.html#gaa0e1b18abc58d3ad24eb35eea2fa75c6">wiced_bt_rfcomm_port_event_t</a> { <br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a147ef28430c932743dabdf452f371555">PORT_EV_NONE</a> = 0x00000000, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a2291aef2e65a037a6180894a022ccf51">PORT_EV_RXCHAR</a> = 0x00000001, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6acfc0c833ef513e4d4499b2c21291b1a9">PORT_EV_RXFLAG</a> = 0x00000002, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6ad63e02b7e64c356efcde1a698dde128f">PORT_EV_TXEMPTY</a> = 0x00000004, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a38c69fe7247db39a37872c4042c4f006">PORT_EV_CTS</a> = 0x00000008, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a6294fef1d832b05fbc2241822e633646">PORT_EV_DSR</a> = 0x00000010, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a10c2bdf54cafcd9e2b2f2f6b73cf4bc6">PORT_EV_RLSD</a> = 0x00000020, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a93ddd638f2a1037efc1bf9829efbb216">PORT_EV_BREAK</a> = 0x00000040, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a21223e2f0159a9b4e5d28178b7995bbd">PORT_EV_ERR</a> = 0x00000080, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6acb07c980eb0b6f0e4d6f1d135338a188">PORT_EV_RING</a> = 0x00000100, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a92e6dbc56674c8ea67ba56b622e5bb1e">PORT_EV_CTSS</a> = 0x00000400, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a7805af0b242dcd9e383a484820e35851">PORT_EV_DSRS</a> = 0x00000800, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6af0c404b8bfd5d6a971a3578ae6c204d7">PORT_EV_RLSDS</a> = 0x00001000, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a499053e3abba3673768df96e99ed7fbb">PORT_EV_OVERRUN</a> = 0x00002000, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6ab0e0e49c83bfe3fed8ded40f4c877b56">PORT_EV_CONNECTED</a> = 0x00000200, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a34886c5f5c970ec71830f71df6a30397">PORT_EV_CONNECT_ERR</a> = 0x00008000, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a9c35996deb5af9e5d67d5da1efc310bd">PORT_EV_FC</a> = 0x00010000, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6aa69edb81d98672d83bd20a22ac1cf308">PORT_EV_FCS</a> = 0x00020000
<br />
 }</td></tr>
<tr class="memdesc:gaa0e1b18abc58d3ad24eb35eea2fa75c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">RFCOMM Port Event Masks.  <a href="group__rfcomm__api__functions.html#gaa0e1b18abc58d3ad24eb35eea2fa75c6">More...</a><br /></td></tr>
<tr class="separator:gaa0e1b18abc58d3ad24eb35eea2fa75c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga919c228fbe128a196f66f0569ff3c1ee"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rfcomm__api__functions.html#ga919c228fbe128a196f66f0569ff3c1ee">wiced_bt_rfcomm_result_e</a> { <br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eeac6a2ab346e231701aad63ab43f956aa2">WICED_BT_RFCOMM_SUCCESS</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eea65658456910f6608b4feb6c3dcacce48">WICED_BT_RFCOMM_ERROR</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eea88c89f9644def54e9438b6b81bbbfda4">WICED_BT_RFCOMM_ALREADY_OPENED</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eea302e940c0ddad808dcec1204b005954d">WICED_BT_RFCOMM_CMD_PENDING</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eeaed0fd417cb1df6184d4f9475fa1310c9">WICED_BT_RFCOMM_APP_NOT_REGISTERED</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eea0869717b42af12d95fe7afb95dce63e9">WICED_BT_RFCOMM_NO_MEM</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eeadcacd8f3468f801516dd5cb11fc413a7">WICED_BT_RFCOMM_NO_RESOURCES</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eeaf86ead6148371bf2058f2dcb94eff32a">WICED_BT_RFCOMM_BAD_BD_ADDR</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eea3aae0d777e5cc370a8557ff4479c39d4">WICED_BT_RFCOMM_INVALID_MTU</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eeaefaf6217e6a2122a0f79b3afe6a0bf37">WICED_BT_RFCOMM_BAD_HANDLE</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eea346d6b3a4e5a77bc65fcd1b8d8e3ebaf">WICED_BT_RFCOMM_NOT_OPENED</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eeaf3b688071de654bb2d18e6678a0b4e50">WICED_BT_RFCOMM_LINE_ERR</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eeaf7652b0d4430c2f76d3ee44b3607af9a">WICED_BT_RFCOMM_START_FAILED</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eeab8fef79ecccd7d4c72fcfbf92b2f7ad6">WICED_BT_RFCOMM_PAR_NEG_FAILED</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eea03e56e8c870f73f930a2a810b69680ec">WICED_BT_RFCOMM_RFCOMM_NEG_FAILED</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eea1425671f23d7a3fff1730f878b76ef64">WICED_BT_RFCOMM_PEER_CONNECTION_FAILED</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eea935b44d52feb6648d065dc3a574da4d3">WICED_BT_RFCOMM_PEER_FAILED</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eeaf89b844b21d92478715ee0aaacd2ef5b">WICED_BT_RFCOMM_PEER_TIMEOUT</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eea9e47ad9235cb12bebb32579480b015ee">WICED_BT_RFCOMM_CLOSED</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eeab158848d1c987033391e3e40c0ea117e">WICED_BT_RFCOMM_TX_FULL</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eeae7453c884e73d65f5789ed41ea613b1b">WICED_BT_RFCOMM_LOCAL_CLOSED</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eeaadaeb45047fa16f70517bfe3382263a6">WICED_BT_RFCOMM_LOCAL_TIMEOUT</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eea080c1f983a887f3ffa8f02a2fcea6272">WICED_BT_RFCOMM_TX_QUEUE_DISABLED</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eea1a58a753025e58ea2590e58d51801946">WICED_BT_RFCOMM_PAGE_TIMEOUT</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#gga919c228fbe128a196f66f0569ff3c1eea37cc294f3813990ea2093096fc1dfc52">WICED_BT_RFCOMM_INVALID_SCN</a>
<br />
 }</td></tr>
<tr class="memdesc:ga919c228fbe128a196f66f0569ff3c1ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">RFCOMM Result Codes.  <a href="group__rfcomm__api__functions.html#ga919c228fbe128a196f66f0569ff3c1ee">More...</a><br /></td></tr>
<tr class="separator:ga919c228fbe128a196f66f0569ff3c1ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadc2b731e552fdb229490b5640e29714d"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rfcomm__api__functions.html#gadc2b731e552fdb229490b5640e29714d">wiced_bt_rfcomm_signal_e</a> { <br />
&#160;&#160;<b>PORT_SET_DTRDSR</b> =0x01, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggadc2b731e552fdb229490b5640e29714da9f0240aa0eaf47ffc2466ed72fe61ef6">PORT_CLR_DTRDSR</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggadc2b731e552fdb229490b5640e29714dac3d657875811506d148b0c0eeb640b45">PORT_SET_CTSRTS</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggadc2b731e552fdb229490b5640e29714dac4f76fe5d805578ce4a18d818b53a73a">PORT_CLR_CTSRTS</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggadc2b731e552fdb229490b5640e29714da461f64d59a7ad02bef1d444733ea8943">PORT_SET_RI</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggadc2b731e552fdb229490b5640e29714dae3045b7f211c689c00796d04d0e19c47">PORT_CLR_RI</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggadc2b731e552fdb229490b5640e29714da52d12db3884e5e67c4aebe743ebc08b4">PORT_SET_DCD</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggadc2b731e552fdb229490b5640e29714da30da2261c07bb597366c2924991cefb5">PORT_CLR_DCD</a>, 
<br />
&#160;&#160;<a class="el" href="group__rfcomm__api__functions.html#ggadc2b731e552fdb229490b5640e29714da0708ac7af96c16d40ff1976d1cb29239">PORT_BREAK</a>
<br />
 }</td></tr>
<tr class="memdesc:gadc2b731e552fdb229490b5640e29714d"><td class="mdescLeft">&#160;</td><td class="mdescRight">RFCOMM Signals.  <a href="group__rfcomm__api__functions.html#gadc2b731e552fdb229490b5640e29714d">More...</a><br /></td></tr>
<tr class="separator:gadc2b731e552fdb229490b5640e29714d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga0acf439d7bfa3540fe1f682e28a3ea15"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rfcomm__api__functions.html#ga0acf439d7bfa3540fe1f682e28a3ea15">wiced_bt_rfcomm_create_connection</a> (uint16_t uuid, uint8_t scn, <a class="el" href="group__gentypes.html#ga2bc92bd117cfd3f6ec4ae452e6ced064">wiced_bool_t</a> is_server, uint16_t mtu, <a class="el" href="group__bt__types.html#gacf9a377aceca799be625c0dfe554902e">wiced_bt_device_address_t</a> bd_addr, uint16_t *p_handle, <a class="el" href="group__rfcomm__api__functions.html#ga29e5339346921b8f38a528ff118498d0">wiced_bt_port_mgmt_cback_t</a> *p_mgmt_cb)</td></tr>
<tr class="memdesc:ga0acf439d7bfa3540fe1f682e28a3ea15"><td class="mdescLeft">&#160;</td><td class="mdescRight">Establish serial port connection to the peer device, or allow RFCOMM to accept a connection from peer devices.  <a href="#ga0acf439d7bfa3540fe1f682e28a3ea15">More...</a><br /></td></tr>
<tr class="separator:ga0acf439d7bfa3540fe1f682e28a3ea15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae609bc27a6207cea08e5017ffb2940b5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rfcomm__api__functions.html#gae609bc27a6207cea08e5017ffb2940b5">wiced_bt_rfcomm_remove_connection</a> (uint16_t handle, <a class="el" href="group__gentypes.html#ga2bc92bd117cfd3f6ec4ae452e6ced064">wiced_bool_t</a> remove_server)</td></tr>
<tr class="memdesc:gae609bc27a6207cea08e5017ffb2940b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Close the specified connection.  <a href="#gae609bc27a6207cea08e5017ffb2940b5">More...</a><br /></td></tr>
<tr class="separator:gae609bc27a6207cea08e5017ffb2940b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabbe544a7a6843471ef384c6dafc976aa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rfcomm__api__functions.html#gabbe544a7a6843471ef384c6dafc976aa">wiced_bt_rfcomm_set_event_callback</a> (uint16_t port_handle, <a class="el" href="group__rfcomm__api__functions.html#gaca604941c538633cc92ad5a5361dab96">wiced_bt_port_event_cback_t</a> *p_port_cb, <a class="el" href="group__rfcomm__api__functions.html#gad9593eadcb99b8ff4f6b7e7f8a5825f8">wiced_bt_port_tx_cback_t</a> *p_tx_cmpl_cb)</td></tr>
<tr class="memdesc:gabbe544a7a6843471ef384c6dafc976aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set event callback the specified connection(neither of the callback can be NULL).  <a href="#gabbe544a7a6843471ef384c6dafc976aa">More...</a><br /></td></tr>
<tr class="separator:gabbe544a7a6843471ef384c6dafc976aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad4241f1a332dbd4d03bbc8ce75cfa839"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rfcomm__api__functions.html#gad4241f1a332dbd4d03bbc8ce75cfa839">wiced_bt_rfcomm_set_event_mask</a> (uint16_t port_handle, <a class="el" href="group__rfcomm__api__functions.html#gaa0e1b18abc58d3ad24eb35eea2fa75c6">wiced_bt_rfcomm_port_event_t</a> mask)</td></tr>
<tr class="memdesc:gad4241f1a332dbd4d03bbc8ce75cfa839"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set events for which to be notified.  <a href="#gad4241f1a332dbd4d03bbc8ce75cfa839">More...</a><br /></td></tr>
<tr class="separator:gad4241f1a332dbd4d03bbc8ce75cfa839"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga417a74cdea9648969a1d28cb403cf0d3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rfcomm__api__functions.html#ga417a74cdea9648969a1d28cb403cf0d3">wiced_bt_rfcomm_control</a> (uint16_t handle, uint8_t signal)</td></tr>
<tr class="memdesc:ga417a74cdea9648969a1d28cb403cf0d3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send control signal to the peer device.  <a href="#ga417a74cdea9648969a1d28cb403cf0d3">More...</a><br /></td></tr>
<tr class="separator:ga417a74cdea9648969a1d28cb403cf0d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga87bbfb9c882d8080fef5f63e2ad256c0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rfcomm__api__functions.html#ga87bbfb9c882d8080fef5f63e2ad256c0">wiced_bt_rfcomm_flow_control</a> (uint16_t handle, <a class="el" href="group__gentypes.html#ga2bc92bd117cfd3f6ec4ae452e6ced064">wiced_bool_t</a> enable)</td></tr>
<tr class="memdesc:ga87bbfb9c882d8080fef5f63e2ad256c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function directs a specified connection to pass flow control message to the peer device.  <a href="#ga87bbfb9c882d8080fef5f63e2ad256c0">More...</a><br /></td></tr>
<tr class="separator:ga87bbfb9c882d8080fef5f63e2ad256c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga354972749236c7b8bac2ee78743a5f95"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rfcomm__api__functions.html#ga354972749236c7b8bac2ee78743a5f95">wiced_bt_rfcomm_set_rx_fifo</a> (uint16_t handle, char *p_mem, uint16_t size)</td></tr>
<tr class="memdesc:ga354972749236c7b8bac2ee78743a5f95"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function provides RFCOMM with a data area to receive peer's data.  <a href="#ga354972749236c7b8bac2ee78743a5f95">More...</a><br /></td></tr>
<tr class="separator:ga354972749236c7b8bac2ee78743a5f95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2f25652d11064bf6879355e18dc03188"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rfcomm__api__functions.html#ga2f25652d11064bf6879355e18dc03188">wiced_bt_rfcomm_read_data</a> (uint16_t handle, char *p_data, uint16_t max_len, uint16_t *p_len)</td></tr>
<tr class="memdesc:ga2f25652d11064bf6879355e18dc03188"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function reads the received application data from the peer device.  <a href="#ga2f25652d11064bf6879355e18dc03188">More...</a><br /></td></tr>
<tr class="separator:ga2f25652d11064bf6879355e18dc03188"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadda009a09d195e0d9ac42ea0980d1694"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rfcomm__api__functions.html#gadda009a09d195e0d9ac42ea0980d1694">wiced_bt_rfcomm_write_data</a> (uint16_t handle, char *p_data, uint16_t max_len)</td></tr>
<tr class="memdesc:gadda009a09d195e0d9ac42ea0980d1694"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function sends the given application data to the peer device.  <a href="#gadda009a09d195e0d9ac42ea0980d1694">More...</a><br /></td></tr>
<tr class="separator:gadda009a09d195e0d9ac42ea0980d1694"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5530e81b324a02f9a43947db3236a93c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rfcomm__api__functions.html#ga5530e81b324a02f9a43947db3236a93c">wiced_bt_rfcomm_check_connection</a> (uint16_t handle, <a class="el" href="group__bt__types.html#gacf9a377aceca799be625c0dfe554902e">wiced_bt_device_address_t</a> bd_addr, uint16_t *p_lcid)</td></tr>
<tr class="memdesc:ga5530e81b324a02f9a43947db3236a93c"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function checks connection referenced by handle is up and running.  <a href="#ga5530e81b324a02f9a43947db3236a93c">More...</a><br /></td></tr>
<tr class="separator:ga5530e81b324a02f9a43947db3236a93c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="ga802c52c03865b1cb09af25e41363275d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga802c52c03865b1cb09af25e41363275d">&#9670;&nbsp;</a></span>PORT_MASK_ALL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PORT_MASK_ALL</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">(<a class="code" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a2291aef2e65a037a6180894a022ccf51">PORT_EV_RXCHAR</a> | <a class="code" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6ad63e02b7e64c356efcde1a698dde128f">PORT_EV_TXEMPTY</a> | <a class="code" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a38c69fe7247db39a37872c4042c4f006">PORT_EV_CTS</a> | \</div><div class="line">                                   PORT_EV_DSR | <a class="code" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a10c2bdf54cafcd9e2b2f2f6b73cf4bc6">PORT_EV_RLSD</a> | <a class="code" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a93ddd638f2a1037efc1bf9829efbb216">PORT_EV_BREAK</a> | \</div><div class="line">                                   PORT_EV_ERR | <a class="code" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6acb07c980eb0b6f0e4d6f1d135338a188">PORT_EV_RING</a> | <a class="code" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a34886c5f5c970ec71830f71df6a30397">PORT_EV_CONNECT_ERR</a> | \</div><div class="line">                                   PORT_EV_DSRS | <a class="code" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a92e6dbc56674c8ea67ba56b622e5bb1e">PORT_EV_CTSS</a> | <a class="code" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6af0c404b8bfd5d6a971a3578ae6c204d7">PORT_EV_RLSDS</a> | \</div><div class="line">                                   PORT_EV_RXFLAG | <a class="code" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a499053e3abba3673768df96e99ed7fbb">PORT_EV_OVERRUN</a> | \</div><div class="line">                                   PORT_EV_FC | <a class="code" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6aa69edb81d98672d83bd20a22ac1cf308">PORT_EV_FCS</a> | <a class="code" href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6ab0e0e49c83bfe3fed8ded40f4c877b56">PORT_EV_CONNECTED</a>)</div><div class="ttc" id="group__rfcomm__api__functions_html_ggaa0e1b18abc58d3ad24eb35eea2fa75c6ab0e0e49c83bfe3fed8ded40f4c877b56"><div class="ttname"><a href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6ab0e0e49c83bfe3fed8ded40f4c877b56">PORT_EV_CONNECTED</a></div><div class="ttdoc">RFCOMM connection established.</div><div class="ttdef"><b>Definition:</b> wiced_bt_rfcomm.h:49</div></div>
<div class="ttc" id="group__rfcomm__api__functions_html_ggaa0e1b18abc58d3ad24eb35eea2fa75c6a92e6dbc56674c8ea67ba56b622e5bb1e"><div class="ttname"><a href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a92e6dbc56674c8ea67ba56b622e5bb1e">PORT_EV_CTSS</a></div><div class="ttdoc">CTS state.</div><div class="ttdef"><b>Definition:</b> wiced_bt_rfcomm.h:45</div></div>
<div class="ttc" id="group__rfcomm__api__functions_html_ggaa0e1b18abc58d3ad24eb35eea2fa75c6a2291aef2e65a037a6180894a022ccf51"><div class="ttname"><a href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a2291aef2e65a037a6180894a022ccf51">PORT_EV_RXCHAR</a></div><div class="ttdoc">Any Character received.</div><div class="ttdef"><b>Definition:</b> wiced_bt_rfcomm.h:36</div></div>
<div class="ttc" id="group__rfcomm__api__functions_html_ggaa0e1b18abc58d3ad24eb35eea2fa75c6a499053e3abba3673768df96e99ed7fbb"><div class="ttname"><a href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a499053e3abba3673768df96e99ed7fbb">PORT_EV_OVERRUN</a></div><div class="ttdoc">receiver buffer overrun</div><div class="ttdef"><b>Definition:</b> wiced_bt_rfcomm.h:48</div></div>
<div class="ttc" id="group__rfcomm__api__functions_html_ggaa0e1b18abc58d3ad24eb35eea2fa75c6a93ddd638f2a1037efc1bf9829efbb216"><div class="ttname"><a href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a93ddd638f2a1037efc1bf9829efbb216">PORT_EV_BREAK</a></div><div class="ttdoc">BREAK received.</div><div class="ttdef"><b>Definition:</b> wiced_bt_rfcomm.h:42</div></div>
<div class="ttc" id="group__rfcomm__api__functions_html_ggaa0e1b18abc58d3ad24eb35eea2fa75c6a38c69fe7247db39a37872c4042c4f006"><div class="ttname"><a href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a38c69fe7247db39a37872c4042c4f006">PORT_EV_CTS</a></div><div class="ttdoc">CTS changed state.</div><div class="ttdef"><b>Definition:</b> wiced_bt_rfcomm.h:39</div></div>
<div class="ttc" id="group__rfcomm__api__functions_html_ggaa0e1b18abc58d3ad24eb35eea2fa75c6aa69edb81d98672d83bd20a22ac1cf308"><div class="ttname"><a href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6aa69edb81d98672d83bd20a22ac1cf308">PORT_EV_FCS</a></div><div class="ttdoc">data flow enable status true = enabled</div><div class="ttdef"><b>Definition:</b> wiced_bt_rfcomm.h:52</div></div>
<div class="ttc" id="group__rfcomm__api__functions_html_ggaa0e1b18abc58d3ad24eb35eea2fa75c6ad63e02b7e64c356efcde1a698dde128f"><div class="ttname"><a href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6ad63e02b7e64c356efcde1a698dde128f">PORT_EV_TXEMPTY</a></div><div class="ttdoc">Transmitt Queue Empty.</div><div class="ttdef"><b>Definition:</b> wiced_bt_rfcomm.h:38</div></div>
<div class="ttc" id="group__rfcomm__api__functions_html_ggaa0e1b18abc58d3ad24eb35eea2fa75c6a34886c5f5c970ec71830f71df6a30397"><div class="ttname"><a href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a34886c5f5c970ec71830f71df6a30397">PORT_EV_CONNECT_ERR</a></div><div class="ttdoc">Was not able to establish connection or disconnected.</div><div class="ttdef"><b>Definition:</b> wiced_bt_rfcomm.h:50</div></div>
<div class="ttc" id="group__rfcomm__api__functions_html_ggaa0e1b18abc58d3ad24eb35eea2fa75c6af0c404b8bfd5d6a971a3578ae6c204d7"><div class="ttname"><a href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6af0c404b8bfd5d6a971a3578ae6c204d7">PORT_EV_RLSDS</a></div><div class="ttdoc">RLSD state.</div><div class="ttdef"><b>Definition:</b> wiced_bt_rfcomm.h:47</div></div>
<div class="ttc" id="group__rfcomm__api__functions_html_ggaa0e1b18abc58d3ad24eb35eea2fa75c6acb07c980eb0b6f0e4d6f1d135338a188"><div class="ttname"><a href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6acb07c980eb0b6f0e4d6f1d135338a188">PORT_EV_RING</a></div><div class="ttdoc">Ring signal detected.</div><div class="ttdef"><b>Definition:</b> wiced_bt_rfcomm.h:44</div></div>
<div class="ttc" id="group__rfcomm__api__functions_html_ggaa0e1b18abc58d3ad24eb35eea2fa75c6a10c2bdf54cafcd9e2b2f2f6b73cf4bc6"><div class="ttname"><a href="group__rfcomm__api__functions.html#ggaa0e1b18abc58d3ad24eb35eea2fa75c6a10c2bdf54cafcd9e2b2f2f6b73cf4bc6">PORT_EV_RLSD</a></div><div class="ttdoc">RLSD changed state.</div><div class="ttdef"><b>Definition:</b> wiced_bt_rfcomm.h:41</div></div>
</div><!-- fragment -->
<p>RFCOMM Port Mask to enable all. </p>

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="ga29e5339346921b8f38a528ff118498d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga29e5339346921b8f38a528ff118498d0">&#9670;&nbsp;</a></span>wiced_bt_port_mgmt_cback_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void() wiced_bt_port_mgmt_cback_t(<a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a> code, uint16_t port_handle)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Port management callback. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">code</td><td>: Result code </td></tr>
    <tr><td class="paramname">port_handle</td><td>: Port handle from <a class="el" href="group__rfcomm__api__functions.html#ga0acf439d7bfa3540fe1f682e28a3ea15">wiced_bt_rfcomm_create_connection</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaca604941c538633cc92ad5a5361dab96"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaca604941c538633cc92ad5a5361dab96">&#9670;&nbsp;</a></span>wiced_bt_port_event_cback_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void() wiced_bt_port_event_cback_t(<a class="el" href="group__rfcomm__api__functions.html#gaa0e1b18abc58d3ad24eb35eea2fa75c6">wiced_bt_rfcomm_port_event_t</a> event, uint16_t port_handle)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Port event callback. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">event</td><td>: A 32-bit event code that contains a bit-mask of one or more events the caller would like to register.(see <a class="el" href="group__rfcomm__api__functions.html#gaa0e1b18abc58d3ad24eb35eea2fa75c6" title="RFCOMM Port Event Masks.">wiced_bt_rfcomm_port_event_t</a>) </td></tr>
    <tr><td class="paramname">port_handle</td><td>: Port handle from <a class="el" href="group__rfcomm__api__functions.html#ga0acf439d7bfa3540fe1f682e28a3ea15">wiced_bt_rfcomm_create_connection </a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gad9593eadcb99b8ff4f6b7e7f8a5825f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad9593eadcb99b8ff4f6b7e7f8a5825f8">&#9670;&nbsp;</a></span>wiced_bt_port_tx_cback_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void() wiced_bt_port_tx_cback_t(uint16_t port_handle, void *p_data)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Port TX Complete callback. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">port_handle</td><td>: Port handle from <a class="el" href="group__rfcomm__api__functions.html#ga0acf439d7bfa3540fe1f682e28a3ea15">wiced_bt_rfcomm_create_connection </a>. </td></tr>
    <tr><td class="paramname">p_data</td><td>: Pointer to application data </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="gaa0e1b18abc58d3ad24eb35eea2fa75c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa0e1b18abc58d3ad24eb35eea2fa75c6">&#9670;&nbsp;</a></span>wiced_bt_rfcomm_port_event_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__rfcomm__api__functions.html#gaa0e1b18abc58d3ad24eb35eea2fa75c6">wiced_bt_rfcomm_port_event_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>RFCOMM Port Event Masks. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggaa0e1b18abc58d3ad24eb35eea2fa75c6a147ef28430c932743dabdf452f371555"></a>PORT_EV_NONE&#160;</td><td class="fielddoc"><p>No event. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa0e1b18abc58d3ad24eb35eea2fa75c6a2291aef2e65a037a6180894a022ccf51"></a>PORT_EV_RXCHAR&#160;</td><td class="fielddoc"><p>Any Character received. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa0e1b18abc58d3ad24eb35eea2fa75c6acfc0c833ef513e4d4499b2c21291b1a9"></a>PORT_EV_RXFLAG&#160;</td><td class="fielddoc"><p>Received certain character. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa0e1b18abc58d3ad24eb35eea2fa75c6ad63e02b7e64c356efcde1a698dde128f"></a>PORT_EV_TXEMPTY&#160;</td><td class="fielddoc"><p>Transmitt Queue Empty. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa0e1b18abc58d3ad24eb35eea2fa75c6a38c69fe7247db39a37872c4042c4f006"></a>PORT_EV_CTS&#160;</td><td class="fielddoc"><p>CTS changed state. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa0e1b18abc58d3ad24eb35eea2fa75c6a6294fef1d832b05fbc2241822e633646"></a>PORT_EV_DSR&#160;</td><td class="fielddoc"><p>DSR changed state. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa0e1b18abc58d3ad24eb35eea2fa75c6a10c2bdf54cafcd9e2b2f2f6b73cf4bc6"></a>PORT_EV_RLSD&#160;</td><td class="fielddoc"><p>RLSD changed state. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa0e1b18abc58d3ad24eb35eea2fa75c6a93ddd638f2a1037efc1bf9829efbb216"></a>PORT_EV_BREAK&#160;</td><td class="fielddoc"><p>BREAK received. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa0e1b18abc58d3ad24eb35eea2fa75c6a21223e2f0159a9b4e5d28178b7995bbd"></a>PORT_EV_ERR&#160;</td><td class="fielddoc"><p>Line status error occurred. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa0e1b18abc58d3ad24eb35eea2fa75c6acb07c980eb0b6f0e4d6f1d135338a188"></a>PORT_EV_RING&#160;</td><td class="fielddoc"><p>Ring signal detected. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa0e1b18abc58d3ad24eb35eea2fa75c6a92e6dbc56674c8ea67ba56b622e5bb1e"></a>PORT_EV_CTSS&#160;</td><td class="fielddoc"><p>CTS state. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa0e1b18abc58d3ad24eb35eea2fa75c6a7805af0b242dcd9e383a484820e35851"></a>PORT_EV_DSRS&#160;</td><td class="fielddoc"><p>DSR state. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa0e1b18abc58d3ad24eb35eea2fa75c6af0c404b8bfd5d6a971a3578ae6c204d7"></a>PORT_EV_RLSDS&#160;</td><td class="fielddoc"><p>RLSD state. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa0e1b18abc58d3ad24eb35eea2fa75c6a499053e3abba3673768df96e99ed7fbb"></a>PORT_EV_OVERRUN&#160;</td><td class="fielddoc"><p>receiver buffer overrun </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa0e1b18abc58d3ad24eb35eea2fa75c6ab0e0e49c83bfe3fed8ded40f4c877b56"></a>PORT_EV_CONNECTED&#160;</td><td class="fielddoc"><p>RFCOMM connection established. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa0e1b18abc58d3ad24eb35eea2fa75c6a34886c5f5c970ec71830f71df6a30397"></a>PORT_EV_CONNECT_ERR&#160;</td><td class="fielddoc"><p>Was not able to establish connection or disconnected. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa0e1b18abc58d3ad24eb35eea2fa75c6a9c35996deb5af9e5d67d5da1efc310bd"></a>PORT_EV_FC&#160;</td><td class="fielddoc"><p>data flow enabled flag changed by remote </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa0e1b18abc58d3ad24eb35eea2fa75c6aa69edb81d98672d83bd20a22ac1cf308"></a>PORT_EV_FCS&#160;</td><td class="fielddoc"><p>data flow enable status true = enabled </p>
</td></tr>
</table>

</div>
</div>
<a id="ga919c228fbe128a196f66f0569ff3c1ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga919c228fbe128a196f66f0569ff3c1ee">&#9670;&nbsp;</a></span>wiced_bt_rfcomm_result_e</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__rfcomm__api__functions.html#ga919c228fbe128a196f66f0569ff3c1ee">wiced_bt_rfcomm_result_e</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>RFCOMM Result Codes. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eeac6a2ab346e231701aad63ab43f956aa2"></a>WICED_BT_RFCOMM_SUCCESS&#160;</td><td class="fielddoc"><p>Success. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eea65658456910f6608b4feb6c3dcacce48"></a>WICED_BT_RFCOMM_ERROR&#160;</td><td class="fielddoc"><p>Error. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eea88c89f9644def54e9438b6b81bbbfda4"></a>WICED_BT_RFCOMM_ALREADY_OPENED&#160;</td><td class="fielddoc"><p>Already Opened. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eea302e940c0ddad808dcec1204b005954d"></a>WICED_BT_RFCOMM_CMD_PENDING&#160;</td><td class="fielddoc"><p>Command Pending. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eeaed0fd417cb1df6184d4f9475fa1310c9"></a>WICED_BT_RFCOMM_APP_NOT_REGISTERED&#160;</td><td class="fielddoc"><p>App Not Registered. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eea0869717b42af12d95fe7afb95dce63e9"></a>WICED_BT_RFCOMM_NO_MEM&#160;</td><td class="fielddoc"><p>No Memory. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eeadcacd8f3468f801516dd5cb11fc413a7"></a>WICED_BT_RFCOMM_NO_RESOURCES&#160;</td><td class="fielddoc"><p>No Resources. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eeaf86ead6148371bf2058f2dcb94eff32a"></a>WICED_BT_RFCOMM_BAD_BD_ADDR&#160;</td><td class="fielddoc"><p>Bad BD Address. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eea3aae0d777e5cc370a8557ff4479c39d4"></a>WICED_BT_RFCOMM_INVALID_MTU&#160;</td><td class="fielddoc"><p>Invalid MTU. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eeaefaf6217e6a2122a0f79b3afe6a0bf37"></a>WICED_BT_RFCOMM_BAD_HANDLE&#160;</td><td class="fielddoc"><p>Bad Handle. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eea346d6b3a4e5a77bc65fcd1b8d8e3ebaf"></a>WICED_BT_RFCOMM_NOT_OPENED&#160;</td><td class="fielddoc"><p>Not Opened. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eeaf3b688071de654bb2d18e6678a0b4e50"></a>WICED_BT_RFCOMM_LINE_ERR&#160;</td><td class="fielddoc"><p>Line Error. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eeaf7652b0d4430c2f76d3ee44b3607af9a"></a>WICED_BT_RFCOMM_START_FAILED&#160;</td><td class="fielddoc"><p>Start Failed. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eeab8fef79ecccd7d4c72fcfbf92b2f7ad6"></a>WICED_BT_RFCOMM_PAR_NEG_FAILED&#160;</td><td class="fielddoc"><p>DLC parameter negotiation failed. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eea03e56e8c870f73f930a2a810b69680ec"></a>WICED_BT_RFCOMM_RFCOMM_NEG_FAILED&#160;</td><td class="fielddoc"><p>Remote port negotiation failed. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eea1425671f23d7a3fff1730f878b76ef64"></a>WICED_BT_RFCOMM_PEER_CONNECTION_FAILED&#160;</td><td class="fielddoc"><p>Peer Connection Failed. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eea935b44d52feb6648d065dc3a574da4d3"></a>WICED_BT_RFCOMM_PEER_FAILED&#160;</td><td class="fielddoc"><p>Peer Failed. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eeaf89b844b21d92478715ee0aaacd2ef5b"></a>WICED_BT_RFCOMM_PEER_TIMEOUT&#160;</td><td class="fielddoc"><p>Peer Timeout. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eea9e47ad9235cb12bebb32579480b015ee"></a>WICED_BT_RFCOMM_CLOSED&#160;</td><td class="fielddoc"><p>Closed. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eeab158848d1c987033391e3e40c0ea117e"></a>WICED_BT_RFCOMM_TX_FULL&#160;</td><td class="fielddoc"><p>No space to transmit the packet. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eeae7453c884e73d65f5789ed41ea613b1b"></a>WICED_BT_RFCOMM_LOCAL_CLOSED&#160;</td><td class="fielddoc"><p>Local Closed. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eeaadaeb45047fa16f70517bfe3382263a6"></a>WICED_BT_RFCOMM_LOCAL_TIMEOUT&#160;</td><td class="fielddoc"><p>Local Timeout. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eea080c1f983a887f3ffa8f02a2fcea6272"></a>WICED_BT_RFCOMM_TX_QUEUE_DISABLED&#160;</td><td class="fielddoc"><p>Transmit queue disabled. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eea1a58a753025e58ea2590e58d51801946"></a>WICED_BT_RFCOMM_PAGE_TIMEOUT&#160;</td><td class="fielddoc"><p>Page Timeout. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga919c228fbe128a196f66f0569ff3c1eea37cc294f3813990ea2093096fc1dfc52"></a>WICED_BT_RFCOMM_INVALID_SCN&#160;</td><td class="fielddoc"><p>Invalid SCN. </p>
</td></tr>
</table>

</div>
</div>
<a id="gadc2b731e552fdb229490b5640e29714d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadc2b731e552fdb229490b5640e29714d">&#9670;&nbsp;</a></span>wiced_bt_rfcomm_signal_e</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__rfcomm__api__functions.html#gadc2b731e552fdb229490b5640e29714d">wiced_bt_rfcomm_signal_e</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>RFCOMM Signals. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggadc2b731e552fdb229490b5640e29714da9f0240aa0eaf47ffc2466ed72fe61ef6"></a>PORT_CLR_DTRDSR&#160;</td><td class="fielddoc"><p>DTRDSR set. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggadc2b731e552fdb229490b5640e29714dac3d657875811506d148b0c0eeb640b45"></a>PORT_SET_CTSRTS&#160;</td><td class="fielddoc"><p>DTRDSR clear. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggadc2b731e552fdb229490b5640e29714dac4f76fe5d805578ce4a18d818b53a73a"></a>PORT_CLR_CTSRTS&#160;</td><td class="fielddoc"><p>CTSRTS set. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggadc2b731e552fdb229490b5640e29714da461f64d59a7ad02bef1d444733ea8943"></a>PORT_SET_RI&#160;</td><td class="fielddoc"><p>CTSRTS clear. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggadc2b731e552fdb229490b5640e29714dae3045b7f211c689c00796d04d0e19c47"></a>PORT_CLR_RI&#160;</td><td class="fielddoc"><p>RI set (DCE only) </p>
</td></tr>
<tr><td class="fieldname"><a id="ggadc2b731e552fdb229490b5640e29714da52d12db3884e5e67c4aebe743ebc08b4"></a>PORT_SET_DCD&#160;</td><td class="fielddoc"><p>RI clear (DCE only) </p>
</td></tr>
<tr><td class="fieldname"><a id="ggadc2b731e552fdb229490b5640e29714da30da2261c07bb597366c2924991cefb5"></a>PORT_CLR_DCD&#160;</td><td class="fielddoc"><p>DCD set (DCE only) </p>
</td></tr>
<tr><td class="fieldname"><a id="ggadc2b731e552fdb229490b5640e29714da0708ac7af96c16d40ff1976d1cb29239"></a>PORT_BREAK&#160;</td><td class="fielddoc"><p>DCD clear (DCE only) </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga0acf439d7bfa3540fe1f682e28a3ea15"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0acf439d7bfa3540fe1f682e28a3ea15">&#9670;&nbsp;</a></span>wiced_bt_rfcomm_create_connection()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a> wiced_bt_rfcomm_create_connection </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>uuid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>scn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gentypes.html#ga2bc92bd117cfd3f6ec4ae452e6ced064">wiced_bool_t</a>&#160;</td>
          <td class="paramname"><em>is_server</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>mtu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__bt__types.html#gacf9a377aceca799be625c0dfe554902e">wiced_bt_device_address_t</a>&#160;</td>
          <td class="paramname"><em>bd_addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>p_handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__rfcomm__api__functions.html#ga29e5339346921b8f38a528ff118498d0">wiced_bt_port_mgmt_cback_t</a> *&#160;</td>
          <td class="paramname"><em>p_mgmt_cb</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Establish serial port connection to the peer device, or allow RFCOMM to accept a connection from peer devices. </p>
<dl class="section note"><dt>Note</dt><dd>Server can call this function with the same scn parameter multiple times if it is ready to accept multiple simulteneous connections.</dd></dl>
<p>DLCI for the connection is (scn * 2 + 1) if client originates connection on existing none initiator multiplexer channel. Otherwise it is (scn * 2). For the server DLCI can be changed later if client will be calling it using (scn * 2 + 1) dlci.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">uuid</td><td>: The Universal Unique Identifier (UUID) of the Class ID of the service being opened </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">scn</td><td>: The Service Channel Number(SCN) as registered with the SDP (server) or obtained using SDP from the peer device (client) </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">is_server</td><td>: TRUE if requesting application is a server </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">mtu</td><td>: The maximum number of bytes transferred per frame If 0, a default size of L2CAP_MAX_BR_RX_MTU minus 5 bytes is used </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">bd_addr</td><td>: BD_ADDR of the peer (if client), NULL if server (see <a class="el" href="group__bt__types.html#gacf9a377aceca799be625c0dfe554902e" title="Device address length.">wiced_bt_device_address_t</a>) </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">p_mgmt_cb</td><td>: Pointer to callback function to receive connection up/down events (see <a class="el" href="group__rfcomm__api__functions.html#ga29e5339346921b8f38a528ff118498d0" title="Port management callback.">wiced_bt_port_mgmt_cback_t</a>) </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">p_handle</td><td>: A pointer to the handle set by RFCOMM to be used in consecutive calls for this connection</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><b> WICED_BT_RFCOMM_SUCCESS </b> : If successful<br />
 <b> WICED_BT_RFCOMM_ALREADY_OPENED </b> : If the client tries to establish a connection to the same BD_ADDR<br />
 <b> WICED_BT_RFCOMM_NO_RESOURCES </b> : If there is not enough memory to allocate a control block structure<br />
</dd></dl>

</div>
</div>
<a id="gae609bc27a6207cea08e5017ffb2940b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae609bc27a6207cea08e5017ffb2940b5">&#9670;&nbsp;</a></span>wiced_bt_rfcomm_remove_connection()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a> wiced_bt_rfcomm_remove_connection </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gentypes.html#ga2bc92bd117cfd3f6ec4ae452e6ced064">wiced_bool_t</a>&#160;</td>
          <td class="paramname"><em>remove_server</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Close the specified connection. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">handle</td><td>: The connection handle returned by <a class="el" href="group__rfcomm__api__functions.html#ga0acf439d7bfa3540fe1f682e28a3ea15">wiced_bt_rfcomm_create_connection</a>. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">remove_server</td><td>: (for server only) If TRUE, then also remove server; otherwise server remains enabled after connection is closed.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><b> WICED_BT_RFCOMM_SUCCESS </b> : If successful <br />
 <b> WICED_BT_RFCOMM_BAD_HANDLE </b> : If the handle is out of range <br />
 <b> WICED_BT_RFCOMM_NOT_OPENED </b> : If the connection is not opened <br />
</dd></dl>

</div>
</div>
<a id="gabbe544a7a6843471ef384c6dafc976aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabbe544a7a6843471ef384c6dafc976aa">&#9670;&nbsp;</a></span>wiced_bt_rfcomm_set_event_callback()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a> wiced_bt_rfcomm_set_event_callback </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>port_handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__rfcomm__api__functions.html#gaca604941c538633cc92ad5a5361dab96">wiced_bt_port_event_cback_t</a> *&#160;</td>
          <td class="paramname"><em>p_port_cb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__rfcomm__api__functions.html#gad9593eadcb99b8ff4f6b7e7f8a5825f8">wiced_bt_port_tx_cback_t</a> *&#160;</td>
          <td class="paramname"><em>p_tx_cmpl_cb</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set event callback the specified connection(neither of the callback can be NULL). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">port_handle</td><td>: A 16-bit unsigned integer returned by <a class="el" href="group__rfcomm__api__functions.html#ga0acf439d7bfa3540fe1f682e28a3ea15">wiced_bt_rfcomm_create_connection</a> </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">p_port_cb</td><td>: Address of the callback function which should be called from the RFCOMM when an event specified in the mask occurs. (see <a class="el" href="group__rfcomm__api__functions.html#gaca604941c538633cc92ad5a5361dab96" title="Port event callback.">wiced_bt_port_event_cback_t</a>) </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">p_tx_cmpl_cb</td><td>: Address of the callback function which should be called from the RFCOMM when TX complete (see <a class="el" href="group__rfcomm__api__functions.html#gad9593eadcb99b8ff4f6b7e7f8a5825f8" title="Port TX Complete callback.">wiced_bt_port_tx_cback_t</a>)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><b> WICED_BT_RFCOMM_SUCCESS </b> : If successful<br />
 <b> WICED_BT_RFCOMM_BAD_HANDLE </b> : If the handle is out of range<br />
 <b> WICED_BT_RFCOMM_NOT_OPENED </b> : If the connection is not opened<br />
</dd></dl>

</div>
</div>
<a id="gad4241f1a332dbd4d03bbc8ce75cfa839"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad4241f1a332dbd4d03bbc8ce75cfa839">&#9670;&nbsp;</a></span>wiced_bt_rfcomm_set_event_mask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a> wiced_bt_rfcomm_set_event_mask </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>port_handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__rfcomm__api__functions.html#gaa0e1b18abc58d3ad24eb35eea2fa75c6">wiced_bt_rfcomm_port_event_t</a>&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set events for which to be notified. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">port_handle</td><td>: A 16-bit unsigned integer returned by <a class="el" href="group__rfcomm__api__functions.html#ga0acf439d7bfa3540fe1f682e28a3ea15">wiced_bt_rfcomm_create_connection </a> </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">mask</td><td>: Event mask (see <a class="el" href="group__rfcomm__api__functions.html#gaa0e1b18abc58d3ad24eb35eea2fa75c6" title="RFCOMM Port Event Masks.">wiced_bt_rfcomm_port_event_t</a>)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><b> WICED_BT_RFCOMM_SUCCESS </b> : If successful<br />
 <b> WICED_BT_RFCOMM_BAD_HANDLE </b> : If the handle is out of range<br />
 <b> WICED_BT_RFCOMM_NOT_OPENED </b> : If the connection is not opened<br />
</dd></dl>

</div>
</div>
<a id="ga417a74cdea9648969a1d28cb403cf0d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga417a74cdea9648969a1d28cb403cf0d3">&#9670;&nbsp;</a></span>wiced_bt_rfcomm_control()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a> wiced_bt_rfcomm_control </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>signal</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Send control signal to the peer device. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">handle</td><td>: The connection handle returned by <a class="el" href="group__rfcomm__api__functions.html#ga0acf439d7bfa3540fe1f682e28a3ea15">wiced_bt_rfcomm_create_connection </a> </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">signal</td><td>: Signal to send (see <a class="el" href="group__rfcomm__api__functions.html#gadc2b731e552fdb229490b5640e29714d" title="RFCOMM Signals.">wiced_bt_rfcomm_signal_e</a>)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><b> WICED_BT_RFCOMM_SUCCESS </b> : If successful<br />
 <b> WICED_BT_RFCOMM_BAD_HANDLE </b> : If the handle is out of range<br />
 <b> WICED_BT_RFCOMM_NOT_OPENED </b> : If the connection is not opened<br />
</dd></dl>

</div>
</div>
<a id="ga87bbfb9c882d8080fef5f63e2ad256c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga87bbfb9c882d8080fef5f63e2ad256c0">&#9670;&nbsp;</a></span>wiced_bt_rfcomm_flow_control()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a> wiced_bt_rfcomm_flow_control </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gentypes.html#ga2bc92bd117cfd3f6ec4ae452e6ced064">wiced_bool_t</a>&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function directs a specified connection to pass flow control message to the peer device. </p>
<p>Enable flag passed shows if port can accept more data.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">handle</td><td>: The connection handle returned by <a class="el" href="group__rfcomm__api__functions.html#ga0acf439d7bfa3540fe1f682e28a3ea15">wiced_bt_rfcomm_create_connection </a> </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">enable</td><td>: Flow control setting TRUE Enable data flow FALSE Disable data flow</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><b> WICED_BT_RFCOMM_SUCCESS </b> : If successful<br />
 <b> WICED_BT_RFCOMM_BAD_HANDLE </b> : If the handle is out of range<br />
 <b> WICED_BT_RFCOMM_NOT_OPENED </b> : If the connection is not opened<br />
</dd></dl>

</div>
</div>
<a id="ga354972749236c7b8bac2ee78743a5f95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga354972749236c7b8bac2ee78743a5f95">&#9670;&nbsp;</a></span>wiced_bt_rfcomm_set_rx_fifo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a> wiced_bt_rfcomm_set_rx_fifo </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>p_mem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function provides RFCOMM with a data area to receive peer's data. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">handle</td><td>: The connection handle returned by <a class="el" href="group__rfcomm__api__functions.html#ga0acf439d7bfa3540fe1f682e28a3ea15">wiced_bt_rfcomm_create_connection </a> </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">p_mem</td><td>: Pointer to the fifo area </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>: Size of the fifo area</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><b> WICED_BT_RFCOMM_SUCCESS </b> : If successful<br />
 <b> WICED_BT_RFCOMM_BAD_HANDLE </b> : If the handle is out of range<br />
 <b> WICED_BT_RFCOMM_NOT_OPENED </b> : If the connection is not opened<br />
</dd></dl>

</div>
</div>
<a id="ga2f25652d11064bf6879355e18dc03188"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2f25652d11064bf6879355e18dc03188">&#9670;&nbsp;</a></span>wiced_bt_rfcomm_read_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a> wiced_bt_rfcomm_read_data </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>p_data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>max_len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>p_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function reads the received application data from the peer device. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">handle</td><td>: The connection handle returned by <a class="el" href="group__rfcomm__api__functions.html#ga0acf439d7bfa3540fe1f682e28a3ea15">wiced_bt_rfcomm_create_connection </a> </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">p_data</td><td>: Where to read the data into </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">max_len</td><td>: Maximum Byte count to read </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">p_len</td><td>: Bytes actually read</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><b> WICED_BT_RFCOMM_SUCCESS </b> : If successful<br />
 <b> WICED_BT_RFCOMM_BAD_HANDLE </b> : If the handle is out of range<br />
 <b> WICED_BT_RFCOMM_NOT_OPENED </b> : If the connection is not opened<br />
</dd></dl>

</div>
</div>
<a id="gadda009a09d195e0d9ac42ea0980d1694"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadda009a09d195e0d9ac42ea0980d1694">&#9670;&nbsp;</a></span>wiced_bt_rfcomm_write_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a> wiced_bt_rfcomm_write_data </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>p_data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>max_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function sends the given application data to the peer device. </p>
<dl class="section note"><dt>Note</dt><dd>the application shall pass a valid <code>p_data</code> buffer allocated on the heap or a global to this call. The buffer contents cannot be altered till a TX complete callback <a class="el" href="group__rfcomm__api__functions.html#gad9593eadcb99b8ff4f6b7e7f8a5825f8">wiced_bt_port_tx_cback_t</a> is received</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">handle</td><td>: The connection handle returned by <a class="el" href="group__rfcomm__api__functions.html#ga0acf439d7bfa3540fe1f682e28a3ea15">wiced_bt_rfcomm_create_connection </a> </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">p_data</td><td>: Data to write </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">max_len</td><td>: Byte count to write</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><b> WICED_BT_RFCOMM_SUCCESS </b> : If successful<br />
 <b> WICED_BT_RFCOMM_BAD_HANDLE </b> : If the handle is out of range<br />
 <b> WICED_BT_RFCOMM_NOT_OPENED </b> : If the connection is not opened<br />
</dd></dl>

</div>
</div>
<a id="ga5530e81b324a02f9a43947db3236a93c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5530e81b324a02f9a43947db3236a93c">&#9670;&nbsp;</a></span>wiced_bt_rfcomm_check_connection()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__rfcomm__api__functions.html#ga67a77aad84c51f52a3a3283258fc620d">wiced_bt_rfcomm_result_t</a> wiced_bt_rfcomm_check_connection </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__bt__types.html#gacf9a377aceca799be625c0dfe554902e">wiced_bt_device_address_t</a>&#160;</td>
          <td class="paramname"><em>bd_addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>p_lcid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function checks connection referenced by handle is up and running. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">handle</td><td>: The connection handle returned by <a class="el" href="group__rfcomm__api__functions.html#ga0acf439d7bfa3540fe1f682e28a3ea15">wiced_bt_rfcomm_create_connection </a> </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">bd_addr</td><td>: Peer BD Address (see <a class="el" href="group__bt__types.html#gacf9a377aceca799be625c0dfe554902e" title="Device address length.">wiced_bt_device_address_t</a>) </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">p_lcid</td><td>: L2CAP's LCID</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><b> WICED_BT_RFCOMM_SUCCESS </b> : If successful<br />
 <b> WICED_BT_RFCOMM_LINE_ERR </b> : If connection is not up and running<br />
</dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>Bluetooth Host Stack Library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
</body>
</html>
